package pattern.visitor;

// 具体的访问者类：cto
public class CtoVisitor implements IVisitor {
    public void visit(Engineer engineer) {
        System.out.println(engineer.getName() + "工作内容为：" + engineer.getCodeLine() + "行代码");
    }

    public void visit(Pm pm) {
        System.out.println(pm.getName() + "工作内容为：" + pm.getProject() + "个项目");
    }
}
